//#include "common.h"
#include "lnx_console_ui.h"
#include "stdio.h"

CLnxConsoleUI::CLnxConsoleUI()
{

}

CLnxConsoleUI::~CLnxConsoleUI()
{

}

void CLnxConsoleUI::UpdateSinkPixel(int row, int col, int color)
{
	printf("\033[%d;%dH", row, col*2);
	switch(color)
	{
	case 0:
		printf("\033[40;37m  \033[0m");
		break;
	case 1:
		printf("\033[45;37m  \033[0m");
		break;
	case 2:
		printf("\033[44;37m  \033[0m");
	    break;
	default:
	    break;
	}
	fflush(stdout);
}

void CLnxConsoleUI::UpdateNextDmdPixel(int row , int col, int color)
{

}

void CLnxConsoleUI::SetTitle(std::string title)
{

}
